const CompanyListSearchKeys = [
    {
        key: "name",
        label: "企业名称",
        placeholder: "请输入企业名称",
        input: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "status",
        label: "状态",
        placeholder: "请选择状态",
        select: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "updater",
        label: "更新人",
        advinced:'yes',
        placeholder: "请选择更新人",
        select: true,
        rules: [{
            required: false
        }],
    },
    {
        key: 'expireDate',
        label: '有效期',
        advinced:'yes',
        format: "YYYY-MM-DD",
        placeholder: '有效期',
        date: true,
        showTime:true,
        rules: [{
            required: false,
        }]
    },
]
const CompanyListColumn =[
    { title: '企业编号', align: 'center', dataIndex:'id' }, 
    { title: '企业名称', align: 'center', dataIndex: 'name'}, 
    { title: '状态', align: 'center', scopedSlots: {customRender: 'status'} }, 
    { title: '更新人', align: 'center', dataIndex: 'updater', customRender: text => { return text || '--'} }, 
    { title: '有效期', align: 'center', dataIndex: 'expireDate', sorter:true, sortDirections:['descend','ascend']  }, 
    { title: '创建时间', align: 'center', dataIndex: 'createTime', sorter:true, sortDirections:['descend','ascend']  }, 
    { title: '操作', align: 'center', align: 'center', scopedSlots: { customRender: 'operation' } }
]
const CompanyModalKeys = [
    {
        key: "name",
        label: "企业名称",
        placeholder: "给起个名字",
        input: true,
        maxLength: 50,
        rules: [{
            required: true,
            message: '企业名称'
        }],
    },
    {
        key: "expireDate",
        label: "有效期",
        placeholder: "请选择有效期",
        date: true,
        rules: [{
            required: true,
            message: '请选择有效期'
        }],
    },
    {
        key: "status",
        label: "状态",
        placeholder: "请选择状态",
        select: true,
        rules: [{
            required: true,
            message: '请选择状态'
        }],
    },
    {
        key: "fileType",
        label: "文件夹组成",
        placeholder: "请选择文件夹组成",
        select: true,
        rules: [{
            required: true,
            message: '请选择文件夹组成'
        }],
    },
    {
        key: "remark",
        label: "企业情况",
        placeholder: "简述企业情况",
        maxLength:200,
        textarea: true,
        rules: [{
            required: false,
            message: '简述企业情况'
        }],
    },
]

const ClientListSearchKeys = [
    {
        key: "clientName",
        label: "客户名称",
        placeholder: "请输入客户名称",
        input: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "status",
        label: "状态",
        placeholder: "请选择状态",
        select: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "updater",
        label: "更新人",
        advinced:'yes',
        placeholder: "请选择更新人",
        select: true,
        rules: [{
            required: false
        }],
    },
    {
        key: 'createTime',
        label: '创建时间',
        advinced:'yes',
        format: "YYYY-MM-DD",
        placeholder: '创建时间',
        date: true,
        showTime:true,
        rules: [{
            required: false,
        }]
    },
]
const ClientListColumn =[
    { title: '客户编号', width:100, align: 'center', dataIndex:'id' }, 
    { title: '客户名称', width:100, align: 'center', dataIndex: 'name'}, 
    { title: '客户邮箱', width:100, align: 'center', dataIndex: 'email', customRender: text => { return text || '--'}}, 
    { title: '余额', width:60, align: 'center', dataIndex: 'balance'}, 
    { title: '状态', width:100, align: 'center', scopedSlots: {customRender: 'status'} }, 
    { title: '更新人', width:80, align: 'center', dataIndex: 'updater', customRender: text => { return text || '--'} }, 
    { title: '创建时间', width:120, align: 'center', dataIndex: 'createTime', sorter:true, sortDirections:['descend','ascend']  }, 
    { title: '操作',  width:160,align: 'center', scopedSlots: { customRender: 'operation' } }
]
const ClientExpandColumn =[
    { title: '模板名称', width:100, align: 'center', dataIndex:'templateName' }, 
    { title: '操作',  width:160, align: 'center', scopedSlots: { customRender: 'operation' } }
]
const ClientGoogleListColumn = [
    { title: 'id', width:80, align: 'center', dataIndex:'id' }, 
    { title: '邮箱', width:100, align: 'center', dataIndex: 'email'},
    { title: '授权是否有效', width:140, align: 'center', dataIndex: 'valid',customRender: text => { return text?'有效':'无效'}},
]
const ClientModalKeys = [
    {
        key: "name",
        label: "客户名称",
        placeholder: "客户名称",
        input: true,
        maxLength: 50,
        rules: [{
            required: true,
            message: '客户名称'
        }],
    },
    {
        key: "email",
        label: "客户邮箱",
        placeholder: "客户邮箱",
        input: true,
        maxLength: 50,
        rules: [{
            required: true,
            message: '客户邮箱'
        }],
    },
    {
        key: "status",
        label: "状态",
        placeholder: "请选择状态",
        select: true,
        rules: [{
            required: true,
            message: '请选择状态'
        }],
    },
    {
        key: "remark",
        label: "客户描述",
        placeholder: "简述客户描述",
        maxLength:200,
        textarea: true,
        rules: [{
            required: false,
            message: '简述客户描述'
        }],
    },
]

const StaffListSearchKeys = [
    {
        key: "userName",
        label: "客户名称",
        placeholder: "请输入客户名称",
        input: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "active",
        label: "状态",
        placeholder: "请选择状态",
        select: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "updater",
        label: "更新人",
        advinced:'yes',
        placeholder: "请选择更新人",
        select: true,
        rules: [{
            required: false
        }],
    },
    {
        key: 'createTime',
        label: '创建时间',
        advinced:'yes',
        format: "YYYY-MM-DD hh:MM:SS",
        placeholder: '创建时间',
        date: true,
        showTime:true,
        rules: [{
            required: false,
        }]
    },
]
const StaffListColumn =[
    { title: '客户编号', align: 'center', dataIndex:'id' }, 
    { title: '客户名称', align: 'center', dataIndex: 'userName'}, 
    { title: '谷歌用户Id', align: 'center', dataIndex: 'googleUserId'},
    { title: '客户邮箱', align: 'center', dataIndex: 'email', customRender: text => { return text || '--'}}, 
    // { title: '所属企业', align: 'center', dataIndex: 'userName'}, 
    { title: '状态', align: 'center', scopedSlots: {customRender: 'active'} }, 
    { title: '更新人', align: 'center', dataIndex: 'updater', customRender: text => { return text || '--'} }, 
    { title: '创建时间', align: 'center', dataIndex: 'createTime', sorter:true, sortDirections:['descend','ascend']  }, 
    { title: '操作', align: 'center', align: 'center', scopedSlots: { customRender: 'operation' } }
]
const SettingDownloadColumn =[
    { title: '名称', align: 'center', dataIndex:'bizName' }, 
]
const StaffModalKeys = [
    {
        key: "employeeName",
        label: "员工名称",
        placeholder: "员工名称",
        input: true,
        maxLength: 50,
        rules: [{
            required: true,
            message: '员工名称'
        }],
    },
    {
        key: "userName",
        label: "登录账号",
        placeholder: "登录账号",
        input: true,
        maxLength: 50,
        rules: [{
            required: true,
            message: '登录账号'
        }],
    },
    {
        key: "pwd",
        label: "登录密码",
        placeholder: "登录密码",
        input: true,
        maxLength: 50,
        rules: [{
            required: false,
            message: '登录密码'
        }],
    },
    {
        key: "email",
        label: "客户邮箱",
        placeholder: "客户邮箱",
        input: true,
        maxLength: 50,
        rules: [{
            required: false,
            message: '客户邮箱'
        }],
    },
    {
        key: "roleCodes",
        label: "选择角色",
        placeholder: "选择角色",
        select: true,
        maxLength: 50,
        selectMode: 'multiple',
        rules: [{
            required: false,
            message: '选择角色'
        }],
    },
    {
        key: "companyId",
        label: "所属企业",
        placeholder: "请选择企业",
        select: true,
        rules: [{
            required: false,
            message: '请选择企业'
        }],
    },
    {
        key: "active",
        label: "状态",
        placeholder: "请选择状态",
        select: true,
        rules: [{
            required: false,
            message: '请选择状态'
        }],
    },
    {
        key: "remark",
        label: "客户描述",
        placeholder: "简述客户描述",
        maxLength:200,
        textarea: true,
        rules: [{
            required: false,
            message: '简述客户描述'
        }],
    },
]


const SkuPriceSearchKeys = [
    {
        key: "skuCode",
        label: "SKU编码",
        placeholder: "请输入SKU编码",
        input: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "spuCode",
        label: "SPU编码",
        placeholder: "请输入SPU编码",
        input: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "cnName",
        label: "商品中文名",
        placeholder: "请输入商品中文名",
        input: true,
        rules: [{
            required: false
        }],
    },
    // {
    //     key: "clientId",
    //     label: "客户",
    //     placeholder: "请选择客户",
    //     select: true,
    //     rules: [{
    //         required: false
    //     }],
    // },
]
const SkuPriceColumn =[
    { title: 'ID',width:80, align: 'center', dataIndex:'id' }, 
    { title: 'SKU编码',width:120, align: 'center', dataIndex: 'skuCode'}, 
    { title: 'SPU编码',width:120, align: 'center', dataIndex: 'spuCode'}, 
    { title: '商品名',width:120, align: 'center', dataIndex: 'name' }, 
    { title: '商品中文名',width:120, align: 'center', dataIndex: 'cnName' }, 
    { title: '客户SKU',width:120, align: 'center', dataIndex: 'thirdSku' }, 
    { title: '客户SPU',width:120, align: 'center', dataIndex: 'thirdSpu' }, 
    { title: '销售价格',width:120, align: 'center', dataIndex: 'salesPrice' }, 
    { title: '线下销售价格',width:120, align: 'center', dataIndex: 'offlinePrice' }, 
    { title: '操作', align: 'center', align: 'center', scopedSlots: { customRender: 'operation' } }
]
const SkuPriceModalKeys = [
    {
        key: "price",
        label: "价格",
        placeholder: "请输入价格",
        input: true,
        rules: [{
            required: true,
            message: '请输入价格'
        }],
    },
]
export {
    CompanyListSearchKeys, CompanyListColumn, CompanyModalKeys,ClientExpandColumn,ClientGoogleListColumn,
    ClientListSearchKeys, ClientListColumn, ClientModalKeys,
    StaffListSearchKeys, StaffListColumn, StaffModalKeys,SettingDownloadColumn,
    SkuPriceSearchKeys, SkuPriceColumn, SkuPriceModalKeys
}